﻿using Microsoft.Extensions.DependencyInjection;
using RoslynProxy.Builder;
using RoslynProxy.Core;

namespace RoslynCodeGenerator
{
    public partial class Program
    {
        static void Main(string[] args)
        {
            ServiceCollection services = new ServiceCollection();

            services.AddProxyServices<MyRoslynProxyServiceCollection>();

            var provider = services.BuildServiceProvider();

            var kkk = provider.GetRequiredService<IMyService>();

            kkk.Show();
        }
    }
}